﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CompositionManage.aspx.cs"
    Inherits="Web_CompositionManage" %>

<%@ Register Src="../Controls/lefttree.ascx" TagName="lefttree" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>试卷自动生成与排版系统--综合题管理</title>
    <!--                       CSS                       -->
    <!-- Reset Stylesheet -->
    <link rel="stylesheet" href="../CSS/reset.css" type="text/css" media="screen" />
    <!-- Main Stylesheet -->
    <link rel="stylesheet" href="../CSS/style2.css" type="text/css" media="screen" />
    <!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
    <link rel="stylesheet" href="../CSS/invalid.css" type="text/css" media="screen" />
    <!--                       Javascripts                       -->
    <!-- jQuery -->
    <script type="text/javascript" src="../scripts/jquery-1.3.2.min.js"></script>
    <!-- jQuery Configuration -->
    <script type="text/javascript" src="../scripts/simpla.jquery.configuration.js"></script>
    <!-- Facebox jQuery Plugin -->
    <script type="text/javascript" src="../scripts/facebox.js"></script>
    <!-- jQuery WYSIWYG Plugin -->
    <script type="text/javascript" src="../scripts/jquery.wysiwyg.js"></script>
    <!-- jQuery Datepicker Plugin -->
    <script type="text/javascript" src="../scripts/jquery.datePicker.js"></script>
    <script type="text/javascript" src="../scripts/jquery.date.js"></script>
    <script src="../JS/Morning_JS.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function logout() {
            if (confirm("您确定要退出当前系统吗？"))
                top.location = "Index.aspx";
            return false;
        }
    </script>
</head>
<body onload="showTime();">
    <form id="Form1" method="post" runat="server">
    <div id="body-wrapper">
        <!-- Wrapper for the radial gradient background -->
        <div id="sidebar">
            <div id="sidebar-wrapper">
                <!-- Sidebar with logo and menu -->
                <!-- Logo (221px wide) -->
                <a href="Main.aspx">
                    <img id="logo" src="../Images/logo.png" alt="" /></a>
                <!-- Sidebar Profile links -->
                <div id="profile-links">
                    欢迎：<a><asp:Label ID="labUser" runat="server" Text="username"></asp:Label></a> &nbsp;登录<br />
                    <br />
                    <a>
                        <script type="text/javascript">                            getDate();</script>
                        <span id="ShowTime"></span></a>
                </div>
                <ul id="main-nav">
                    <li><a href="#" class="nav-top-item no-submenu current">导航列表 </a></li>
                    <uc1:lefttree ID="Lefttree1" runat="server" />
                </ul>
                <!-- End #main-nav -->
            </div>
        </div>
        <!-- End #sidebar -->
        <div id="main-content">
            <!-- Main Content Section with everything -->
            <!-- Page Head -->
            <h2>
                欢迎使用“试卷自动生成与排版系统”</h2>
            <ul class="shortcut-buttons-set">
                <li><a class="shortcut-button" href="Main.aspx"><span>
                    <img src="../Images/icons/home.png" alt="icon" /><br />
                    主页 </span></a></li>
                <li><a class="shortcut-button" href="PwdModify.aspx"><span>
                    <img src="../Images/icons/pwd.png" alt="icon" /><br />
                    修改密码</span></a></li>
                <li><a class="shortcut-button" href="PaperLists.aspx"><span>
                    <img src="../Images/icons/list.png" alt="icon" /><br />
                    试卷管理</span></a></li>
                <li><a class="shortcut-button" href="PaperSetup.aspx"><span>
                    <img src="../Images/icons/document.png" alt="icon" /><br />
                    试卷定制 </span></a></li>
                <li><a class="shortcut-button" href="http://www.google.com.hk" target="_blank"><span>
                    <img src="../Images/icons/world.png" alt="icon" /><br />
                    Internet</span></a></li>
                <li><a class="shortcut-button" href="#" target="_self" onclick="logout();"><span>
                    <img src="../Images/icons/power.png" alt="icon" /><br />
                    退出系统 </span></a></li>
            </ul>
            <!-- End .shortcut-buttons-set -->
            <div class="clear">
            </div>
            <!-- End .clear -->
            <div class="content-box">
                <!-- Start Content Box -->
                <div class="content-box-header">
                    <h3>
                        综合题管理</h3>
                    <ul class="content-box-tabs">
                        <!-- href must be unique and match the id of target div -->
                    </ul>
                    <div class="clear">
                    </div>
                </div>
                <!-- End .content-box-header -->
                <div class="content-box-content">
                    <div class="tab-content default-tab" id="tab1">
                        <!-- This is the target div. id must match the href of this div's tab -->
                        <thead>
                            <p>
                                科目：
                                <asp:DropDownList ID="ddlCourse" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCourse_SelectedIndexChanged"
                                    CssClass="text-input small-input datepicker">
                                </asp:DropDownList>
                            </p>
                        </thead>
                        <tbody>
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                                OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDataBound="GridView1_RowDataBound"
                                DataKeyNames="ID" OnRowDeleting="GridView1_RowDeleting">
                                <Columns>
                                    <asp:TemplateField HeaderText="编号" Visible="false">
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server"><%# Eval("ID") %></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="序号">
                                        <ItemTemplate>
                                            <asp:Label ID="Label10" runat="server" Text='<%# Container.DataItemIndex+1 %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="Title" HeaderText="题目" />
                                    <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="CompositionAdd.aspx?ID={0}"
                                        HeaderText="详细..." Text="详细..." />
                                    <asp:CommandField ButtonType="Image" DeleteImageUrl="../Images/icons/cross.png" ShowDeleteButton="True"
                                        HeaderText="删除" />
                                </Columns>
                                <HeaderStyle BackColor="#7090C8" Font-Bold="True" ForeColor="White" />
                                <FooterStyle BackColor="White" ForeColor="#000066" />
                                <%-- <RowStyle ForeColor="#000066" />--%>
                                <%--  <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />--%>
                                <%--<PagerStyle BackColor="White" ForeColor="#7090C8" HorizontalAlign="Left" />--%>
                                <PagerStyle CssClass="pagination number" />
                            </asp:GridView>
                        </tbody>
                        <tfoot>
                            <table align="center">
                                <tr>
                                    <td colspan="3" rowspan="3" style="font-size: small; height: 1px; text-align: left">
                                        共<asp:Label ID="Label10" runat="server" Font-Size="Small" Text="Label"><%=GridView1.PageCount%></asp:Label>页
                                        当前第<asp:Label ID="Label11" runat="server" Font-Size="Small" Text="Label"><%=GridView1.PageIndex+1%></asp:Label>
                                        页&nbsp;
                                    </td>
                                    <td align="right" colspan="1" rowspan="3" style="font-size: small; height: 1px; text-align: right">
                                        <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument="first" CommandName="A"
                                            Font-Underline="False" OnClick="LinkButton1_Click">&laquo; 首页&nbsp;</asp:LinkButton>
                                        <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="prev" CommandName="A"
                                            Font-Underline="False" OnClick="LinkButton1_Click">&laquo; 上一页&nbsp;</asp:LinkButton>
                                        <asp:LinkButton ID="LinkButton3" runat="server" CommandArgument="next" CommandName="A"
                                            Font-Underline="False" OnClick="LinkButton1_Click">下一页&raquo;&nbsp;</asp:LinkButton>
                                        <asp:LinkButton ID="LinkButton4" runat="server" CommandArgument="last" CommandName="A"
                                            Font-Underline="False" OnClick="LinkButton1_Click">尾页&raquo;</asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                            <p  align="center">
                                <%--<div class="bulk-actions align-left">--%>
                                    <a class="button" href="CompositionAdd.aspx">添加多选题</a>
                               
                            </p>
                        </tfoot>
                    </div>
                </div>
                <!-- End .content-box-content -->
            </div>
            <!-- End .content-box -->
            <div class="clear">
            </div>
            <!-- Start Notifications -->
            <!-- End Notifications -->
            <div id="footer">
                <small>
                    <!-- Remove this notice or replace it with whatever you want -->
                    &copy; 2012 Stylized&nbsp; | All rights reserved. Designed by SEA. | <a style="color: #999;
                        background: inherit;" href="Index.aspx">试卷自动生成与排版系统</a> | <a href="#">Top</a>
                </small>
            </div>
            <!-- End #footer -->
        </div>
        <!-- End #main-content -->
    </div>
    </form>
</body>
</html>
